#include<stdio.h>
double origin, rest,total=0;
double AfterExpense(double);
double Total(double);

int main()
{
	    
	loop:scanf("%lf", &origin);
	if (origin <= 0) {
		return 0;
	}
		else {
			rest = AfterExpense(origin);
			total = Total(rest);
			goto loop;
		}
}
double AfterExpense(double origin)
{
	rest = 0.83 * origin;
	printf("After expenses:$%.2lf\n", rest);
	return rest;
	
}
double Total(double rest)
{
	total += rest;
	printf("Total raised:$%.2lf\n", total);
	return(total);

}